package com.ruoyi.course.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.course.mapper.LabCourseTeacherMapper;
import com.ruoyi.course.domain.LabCourseTeacher;
import com.ruoyi.course.service.ILabCourseTeacherService;

/**
 * 带班老师Service业务层处理
 * 
 * @author jun.wang
 * @date 2022-04-09
 */
@Service
public class LabCourseTeacherServiceImpl implements ILabCourseTeacherService 
{
    @Autowired
    private LabCourseTeacherMapper labCourseTeacherMapper;

    /**
     * 查询带班老师
     * 
     * @param courseTeacherId 带班老师ID
     * @return 带班老师
     */
    @Override
    public LabCourseTeacher selectLabCourseTeacherById(Long courseTeacherId)
    {
        return labCourseTeacherMapper.selectLabCourseTeacherById(courseTeacherId);
    }

    /**
     * 查询带班老师列表
     * 
     * @param labCourseTeacher 带班老师
     * @return 带班老师
     */
    @Override
    public List<LabCourseTeacher> selectLabCourseTeacherList(LabCourseTeacher labCourseTeacher)
    {
        return labCourseTeacherMapper.selectLabCourseTeacherList(labCourseTeacher);
    }

    /**
     * 新增带班老师
     * 
     * @param labCourseTeacher 带班老师
     * @return 结果
     */
    @Override
    public int insertLabCourseTeacher(LabCourseTeacher labCourseTeacher)
    {
        return labCourseTeacherMapper.insertLabCourseTeacher(labCourseTeacher);
    }

    /**
     * 修改带班老师
     * 
     * @param labCourseTeacher 带班老师
     * @return 结果
     */
    @Override
    public int updateLabCourseTeacher(LabCourseTeacher labCourseTeacher)
    {
        return labCourseTeacherMapper.updateLabCourseTeacher(labCourseTeacher);
    }

    /**
     * 批量删除带班老师
     * 
     * @param courseTeacherIds 需要删除的带班老师ID
     * @return 结果
     */
    @Override
    public int deleteLabCourseTeacherByIds(Long[] courseTeacherIds)
    {
        return labCourseTeacherMapper.deleteLabCourseTeacherByIds(courseTeacherIds);
    }

    /**
     * 删除带班老师信息
     * 
     * @param courseTeacherId 带班老师ID
     * @return 结果
     */
    @Override
    public int deleteLabCourseTeacherById(Long courseTeacherId)
    {
        return labCourseTeacherMapper.deleteLabCourseTeacherById(courseTeacherId);
    }
}
